package org.sixtynine.stock.dao;

/**
 * @author Thilan
 *
 */

import java.util.Date;
import java.util.List;

import org.sixtynine.stock.dto.GridPramDTO;
import org.sixtynine.stock.dto.Page;
import org.sixtynine.stock.entity.Banner;
import org.springframework.transaction.annotation.Transactional;

@Transactional(readOnly = true)
public interface BannerDao extends AbstractDao<Banner, Integer> {

	void saveBanner(Banner banner);

	List<Banner> findBanner(String positionCode);

	List<Banner> searchBanner(Date fromDate, Date toDate);

	public Page<Banner> searchBanner(Date fromDate, Date toDate,
			GridPramDTO gridPramDTO);

}
